home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
animgi1a
/
form1.frm
< prev
Wrap
Text File
|
1999-09-23
|
3KB
|
105 lines
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
Object = "*\AProject2.vbp"
Begin VB.Form frmAnimGIF
AutoRedraw = -1 'True
BorderStyle = 0 'Kein
Caption = "Form1"
ClientHeight = 5595
ClientLeft = 0
ClientTop = 0
ClientWidth = 5940
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5595
ScaleWidth = 5940
ShowInTaskbar = 0 'False
StartUpPosition = 2 'Bildschirmmitte
Begin Project1.UserControl1 UserControl11
Height = 1335
Left = 120
TabIndex = 3
Top = 1320
Width = 1695
_ExtentX = 2990
_ExtentY = 2355
End
Begin VB.TextBox Text2
BackColor = &H8000000F&
Height = 375
Left = 120
TabIndex = 2
Text = "Text1"
Top = 720
Width = 3375
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 2520
Top = 120
_ExtentX = 847
_ExtentY = 847
_Version = 327680
End
Begin VB.CommandButton Command3
Caption = "Exit"
Height = 495
Left = 1320
TabIndex = 1
Top = 120
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "Open"
Height = 495
Left = 120
TabIndex = 0
Top = 120
Width = 1095
End
End
Attribute VB_Name = "frmAnimGIF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
CommonDialog1.CancelError = True
On Error GoTo Err_Handler
CommonDialog1.Filter = "GIF Files (*.gif)|*.gif|JPG files (*.jpg)|*.jpg;*.jpeg"
CommonDialog1.ShowOpen
GoTo t2
Err_Handler:
MsgBox "An Error Has Occured."
Exit Sub
t2:
UserControl11.AnimGif = CommonDialog1.filename
UserControl11.BackColor = &H0
UserControl11.AnimStart
UserControl12.AnimGif = CommonDialog1.filename
UserControl12.BackColor = &H0
UserControl12.AnimStart
UserControl13.AnimGif = CommonDialog1.filename
UserControl13.BackColor = &H0
UserControl13.AnimStart
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub UserControl11_ButtonDown()
Text2.Text = "down"
End Sub
Private Sub UserControl11_ButtonNormal()
Text2.Text = "Norm"
End Sub
Private Sub UserControl11_ButtonRollover()
Text2.Text = "rollover"
End Sub